from datetime import datetime
from typing import List, Sequence

from pydantic import BaseModel


class MsgCreateSerializer(BaseModel):
    id: int
    # create_time: str
    modify_time: datetime
    content: str = None
    kind: str = None
    addr: str = None


class MsgListSerializer(BaseModel):
    msgs: Sequence[MsgCreateSerializer]
